﻿<Window x:Class="KeyboardImageViewer.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:selfns="clr-namespace:KeyboardImageViewer"
    Title="Keyboard Image Viewer" Height="482" Width="740"
        PreviewKeyDown="Window_KeyDown"
        Mouse.MouseWheel="Window_MouseWheel"
        Mouse.MouseDown="Window_MouseDown"
        Closing="Window_Closing"
        FontSize="14"
        SizeToContent="Manual"
        ResizeMode="NoResize"
        Icon="/KeyboardImageViewer;component/kiv_icon3.ico"
        WindowState="Maximized"
        WindowStyle="None"
        Cursor="None"
        WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <Style x:Key="InfoBarText" TargetType="{x:Type TextBlock}">
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="Margin" Value="0,0,0,3" />
            <Setter Property="Padding" Value="10,0" />
            <Setter Property="FontSize" Value="16" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
    </Window.Resources>
    <Grid Background="Black">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Name="infoBarRowDef" Height="26" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Grid.RowSpan="2" Name="imageGrid">
            <Rectangle Name="backgroundRectangle" Fill="Black" Grid.Row="0" />
        </Grid>
        <selfns:GifImageControl x:Name="gifImage" Grid.Row="0" Grid.RowSpan="2" AllowClickToPause="False" />
        <TextBlock Name="informationalText" Grid.Row="0" Foreground="White" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Collapsed">Information</TextBlock>
        <TextBlock Name="errorText" Grid.Row="0" Foreground="Red" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Collapsed">Error</TextBlock>
        <Grid Grid.Row="1" Grid.RowSpan="1" Name="infoBarGrid" Visibility="Collapsed" VerticalAlignment="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" Name="textColumn" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <!--<Border Name="overlayBorder" Grid.Column="1" Background="Black" Opacity="0.8" CornerRadius="10,10,0,0" Visibility="Visible" />-->
            <StackPanel Grid.Column="1" Orientation="Horizontal" Name="textStack">
                <StackPanel.BitmapEffect>
                    <OuterGlowBitmapEffect GlowSize="6" GlowColor="Black" />
                </StackPanel.BitmapEffect>
                <TextBlock Name="duplicate" Style="{StaticResource InfoBarText}" Foreground="#6098FF" Text="(Dupe)" />
                <TextBlock Name="fileName" Style="{StaticResource InfoBarText}" FontWeight="Bold" Foreground="#E0E0E0" Text="File Name" />
                <StackPanel Orientation="Horizontal" Name="tagsPanel" Margin="10,0,10,0">
                    <Image Source="/UIElements/tag_icon.png" Height="17" />
                    <TextBlock Name="tagsText" Style="{StaticResource InfoBarText}" Foreground="White" Text="Tags" Padding="4,0,0,0" />
                </StackPanel>
                <TextBlock Name="rating" Style="{StaticResource InfoBarText}" Foreground="White" Text="4" />
                <TextBlock Name="viewIndex" Style="{StaticResource InfoBarText}" Foreground="White" Text="12/26" />
                <TextBlock Name="order" Style="{StaticResource InfoBarText}" Foreground="White" Text="Order" />
                <StackPanel Orientation="Horizontal" Name="filtersPanel" Margin="10,0,0,0">
                    <Image Source="/UIElements/filter_icon.png" Height="15" />
                    <TextBlock Name="filtersText" Style="{StaticResource InfoBarText}" Foreground="White" Text="Filters" Padding="3,0,10,0" />
                </StackPanel>
                <Image Name="playIcon" Source="/UIElements/play_icon.png" Height="17" Visibility="Collapsed" Margin="0,0,7,0" />
            </StackPanel>
        </Grid>
        <StackPanel Name="indexingProgressPanel" Visibility="Collapsed" Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Center">
            <TextBlock Grid.Column="0" Name="progressLabel" Foreground="White" Text="Indexing images..." FontSize="16" FontWeight="Bold" Padding="10,0" Margin="0" HorizontalAlignment="Center" />
            <ProgressBar Grid.Column="1" Name="indexProgress" Height="23" Width="Auto" Margin="25,0" />
        </StackPanel>
    </Grid>
</Window>
